package com.wicket.okrframework.biz.service.dto.res;

import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


@Data
public class ManagedDeptListDto extends BaseDto implements Serializable {

    /**
     * 管理的部门ID:
     */
    @ApiModelProperty("管理的部门ID")
    private String managedDepId;

    /**
     * 部门ID:
     */
    @ApiModelProperty("部门ID")
    private String deptId;

    /**
     * 部门编号:
     */
    @ApiModelProperty("部门编号")
    private String deptNumber;

    /**
     * 部门名称（中文）:
     */
    @ApiModelProperty("部门名称（中文）")
    private String deptName;
    /**
     * 部门简称:
     */
    @ApiModelProperty("部门简称")
    private String deptShortName;

    /**
     * 组织ID:
     */
    @ApiModelProperty("组织ID")
    private String organizationId;

    /**
     * 组织名称:
     */
    @ApiModelProperty("组织名称")
    private String organizationName;
    /**
     * 部门名称（英文）:
     */
    @ApiModelProperty("部门名称（英文）")
    private String deptEnName;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      ManagedDeptListDto that = (ManagedDeptListDto) o;
      return  managedDepId == that.managedDepId&&deptId == that.deptId&&deptNumber == that.deptNumber&&deptName == that.deptName&&deptShortName == that.deptShortName&&organizationId == that.organizationId&&organizationName == that.organizationName&&deptEnName == that.deptEnName;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), managedDepId,deptId,deptNumber,deptName,deptShortName,organizationId,organizationName,deptEnName);
    }
}
